package clock.socoolby.com.clock.widget.textview.charanimator;

import android.graphics.Canvas;
import android.graphics.Paint;

public  class Up2DownCharAnimator extends AbstractCharAnimator {
    public Up2DownCharAnimator(String preString, String currentString) {
        super(preString, currentString);
    }

    @Override
    public void drawCharPre(Canvas canvas, String strToDraw, float startX, float startY, Paint mTextPaint, float percent) {
        canvas.drawText(strToDraw, startX, startY+startY*percent, mTextPaint);
    }

    @Override
    public void drawCharCurrent(Canvas canvas, String strToDraw, float startX, float startY, Paint mTextPaint, float percent) {
        canvas.drawText(strToDraw, startX, startY*percent, mTextPaint);
    }

}
